.class final Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;
.super Lcom/burstly/lib/component/AbstractAdaptor;
.source "AdmobAdaptor.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor$BurstlyAdViewWrapper;,
        Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor$AdmobListener;
    }
.end annotation


# static fields
.field static final FULLSCREEN_INFO:Lcom/burstly/lib/component/IBurstlyAdaptorListener$FullscreenInfo; = null

.field static final NETWORK_NAME:Ljava/lang/String; = "admob"

.field private static final TAG:Ljava/lang/String;


# instance fields
.field private mAdView:Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor$BurstlyAdViewWrapper;

.field private mCachedInterstitialAd:Lcom/google/ads/InterstitialAd;

.field private final mConfigurator:Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;

.field private mInterstitialAd:Lcom/google/ads/InterstitialAd;


# direct methods
.method static constructor <clinit>()V
    .locals 3

    .prologue
    .line 62
    const-class v0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;

    invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->TAG:Ljava/lang/String;

    .line 72
    new-instance v0, Lcom/burstly/lib/component/IBurstlyAdaptorListener$FullscreenInfo;

    const-string v1, "admob"

    const/4 v2, 0x1

    invoke-direct {v0, v1, v2}, Lcom/burstly/lib/component/IBurstlyAdaptorListener$FullscreenInfo;-><init>(Ljava/lang/String;Z)V

    sput-object v0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->FULLSCREEN_INFO:Lcom/burstly/lib/component/IBurstlyAdaptorListener$FullscreenInfo;

    return-void
.end method

.method constructor <init>(Landroid/content/Context;Ljava/lang/String;)V
    .locals 2
    .parameter "context"
    .parameter "viewId"

    .prologue
    .line 291
    invoke-direct {p0, p1, p2}, Lcom/burstly/lib/component/AbstractAdaptor;-><init>(Landroid/content/Context;Ljava/lang/String;)V

    .line 292
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, " "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    sget-object v1, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->TAG:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->mTag:Ljava/lang/String;

    .line 293
    new-instance v0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;

    invoke-direct {v0}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;-><init>()V

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->mConfigurator:Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;

    .line 294
    return-void
.end method

.method static synthetic access$000(Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;)Lcom/google/ads/InterstitialAd;
    .locals 1
    .parameter "x0"

    .prologue
    .line 57
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->mInterstitialAd:Lcom/google/ads/InterstitialAd;

    return-object v0
.end method

.method static synthetic access$002(Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;Lcom/google/ads/InterstitialAd;)Lcom/google/ads/InterstitialAd;
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 57
    iput-object p1, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->mInterstitialAd:Lcom/google/ads/InterstitialAd;

    return-object p1
.end method

.method static synthetic access$1000()Lcom/burstly/lib/util/LoggerExt;
    .locals 1

    .prologue
    .line 57
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->LOG:Lcom/burstly/lib/util/LoggerExt;

    return-object v0
.end method

.method static synthetic access$102(Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor$BurstlyAdViewWrapper;)Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor$BurstlyAdViewWrapper;
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 57
    iput-object p1, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->mAdView:Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor$BurstlyAdViewWrapper;

    return-object p1
.end method

.method static synthetic access$1100()Lcom/burstly/lib/util/LoggerExt;
    .locals 1

    .prologue
    .line 57
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->LOG:Lcom/burstly/lib/util/LoggerExt;

    return-object v0
.end method

.method static synthetic access$1200()Lcom/burstly/lib/util/LoggerExt;
    .locals 1

    .prologue
    .line 57
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->LOG:Lcom/burstly/lib/util/LoggerExt;

    return-object v0
.end method

.method static synthetic access$1300()Lcom/burstly/lib/util/LoggerExt;
    .locals 1

    .prologue
    .line 57
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->LOG:Lcom/burstly/lib/util/LoggerExt;

    return-object v0
.end method

.method static synthetic access$1400()Lcom/burstly/lib/util/LoggerExt;
    .locals 1

    .prologue
    .line 57
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->LOG:Lcom/burstly/lib/util/LoggerExt;

    return-object v0
.end method

.method static synthetic access$1500()Lcom/burstly/lib/util/LoggerExt;
    .locals 1

    .prologue
    .line 57
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->LOG:Lcom/burstly/lib/util/LoggerExt;

    return-object v0
.end method

.method static synthetic access$1600()Lcom/burstly/lib/util/LoggerExt;
    .locals 1

    .prologue
    .line 57
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->LOG:Lcom/burstly/lib/util/LoggerExt;

    return-object v0
.end method

.method static synthetic access$200(Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;)Ljava/lang/String;
    .locals 1
    .parameter "x0"

    .prologue
    .line 57
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->mTag:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$300()Lcom/burstly/lib/util/LoggerExt;
    .locals 1

    .prologue
    .line 57
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->LOG:Lcom/burstly/lib/util/LoggerExt;

    return-object v0
.end method

.method static synthetic access$400(Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;)Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;
    .locals 1
    .parameter "x0"

    .prologue
    .line 57
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->mConfigurator:Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;

    return-object v0
.end method

.method static synthetic access$500(Ljava/lang/Object;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 57
    invoke-static {p0}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->stopAutoRefresh(Ljava/lang/Object;)V

    return-void
.end method

.method static synthetic access$600(Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;)Ljava/lang/String;
    .locals 1
    .parameter "x0"

    .prologue
    .line 57
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->mTag:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$700()Lcom/burstly/lib/util/LoggerExt;
    .locals 1

    .prologue
    .line 57
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->LOG:Lcom/burstly/lib/util/LoggerExt;

    return-object v0
.end method

.method static synthetic access$800(Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 57
    invoke-direct {p0}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->handleInterstitialSuccess()V

    return-void
.end method

.method static synthetic access$900()Lcom/burstly/lib/util/LoggerExt;
    .locals 1

    .prologue
    .line 57
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->LOG:Lcom/burstly/lib/util/LoggerExt;

    return-object v0
.end method

.method private configureAdRequest(Lcom/google/ads/AdRequest;)V
    .locals 1
    .parameter "adRequest"

    .prologue
    .line 338
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->mConfigurator:Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;

    invoke-virtual {v0, p1}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->configure(Lcom/google/ads/AdRequest;)V

    .line 339
    return-void
.end method

.method private createImpl()Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor$BurstlyAdViewWrapper;
    .locals 5

    .prologue
    const/4 v4, -0x2

    .line 347
    new-instance v0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor$BurstlyAdViewWrapper;

    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->getContext()Landroid/content/Context;

    move-result-object v1

    check-cast v1, Landroid/app/Activity;

    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->mConfigurator:Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;

    invoke-virtual {v2}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->getAdSize()Lcom/google/ads/AdSize;

    move-result-object v2

    iget-object v3, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->mConfigurator:Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;

    invoke-virtual {v3}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->getAdPubId()Ljava/lang/String;

    move-result-object v3

    invoke-direct {v0, v1, v2, v3}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor$BurstlyAdViewWrapper;-><init>(Landroid/app/Activity;Lcom/google/ads/AdSize;Ljava/lang/String;)V

    .line 349
    .local v0, adView:Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor$BurstlyAdViewWrapper;
    const/16 v1, 0x11

    invoke-virtual {v0, v1}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor$BurstlyAdViewWrapper;->setGravity(I)V

    .line 350
    new-instance v1, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v1, v4, v4}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v0, v1}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor$BurstlyAdViewWrapper;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 351
    return-object v0
.end method

.method private executeRequest()Landroid/view/View;
    .locals 7

    .prologue
    .line 323
    invoke-direct {p0}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->createImpl()Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor$BurstlyAdViewWrapper;

    move-result-object v1

    iput-object v1, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->mAdView:Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor$BurstlyAdViewWrapper;

    .line 324
    sget-object v1, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->LOG:Lcom/burstly/lib/util/LoggerExt;

    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->mTag:Ljava/lang/String;

    const-string v3, "pubID for admob: {0}"

    const/4 v4, 0x1

    new-array v4, v4, [Ljava/lang/Object;

    const/4 v5, 0x0

    iget-object v6, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->mConfigurator:Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;

    invoke-virtual {v6}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->getAdPubId()Ljava/lang/String;

    move-result-object v6

    aput-object v6, v4, v5

    invoke-virtual {v1, v2, v3, v4}, Lcom/burstly/lib/util/LoggerExt;->logInfo(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 325
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->mAdView:Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor$BurstlyAdViewWrapper;

    new-instance v2, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor$AdmobListener;

    invoke-direct {v2, p0}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor$AdmobListener;-><init>(Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;)V

    invoke-virtual {v1, v2}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor$BurstlyAdViewWrapper;->setAdListener(Lcom/google/ads/AdListener;)V

    .line 326
    new-instance v0, Lcom/google/ads/AdRequest;

    invoke-direct {v0}, Lcom/google/ads/AdRequest;-><init>()V

    .line 327
    .local v0, adRequest:Lcom/google/ads/AdRequest;
    invoke-direct {p0, v0}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->configureAdRequest(Lcom/google/ads/AdRequest;)V

    .line 328
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->mAdView:Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor$BurstlyAdViewWrapper;

    invoke-virtual {v1, v0}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor$BurstlyAdViewWrapper;->loadAd(Lcom/google/ads/AdRequest;)V

    .line 329
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->mAdView:Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor$BurstlyAdViewWrapper;

    invoke-direct {p0, v1}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->wrapView(Lcom/google/ads/AdView;)Landroid/widget/FrameLayout;

    move-result-object v1

    return-object v1
.end method

.method private handleInterstitial()V
    .locals 4

    .prologue
    .line 411
    new-instance v2, Lcom/google/ads/InterstitialAd;

    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->getContext()Landroid/content/Context;

    move-result-object v1

    check-cast v1, Landroid/app/Activity;

    iget-object v3, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->mConfigurator:Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;

    invoke-virtual {v3}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->getAdPubId()Ljava/lang/String;

    move-result-object v3

    invoke-direct {v2, v1, v3}, Lcom/google/ads/InterstitialAd;-><init>(Landroid/app/Activity;Ljava/lang/String;)V

    iput-object v2, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->mInterstitialAd:Lcom/google/ads/InterstitialAd;

    .line 412
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->mInterstitialAd:Lcom/google/ads/InterstitialAd;

    new-instance v2, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor$AdmobListener;

    invoke-direct {v2, p0}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor$AdmobListener;-><init>(Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;)V

    invoke-virtual {v1, v2}, Lcom/google/ads/InterstitialAd;->setAdListener(Lcom/google/ads/AdListener;)V

    .line 413
    new-instance v0, Lcom/google/ads/AdRequest;

    invoke-direct {v0}, Lcom/google/ads/AdRequest;-><init>()V

    .line 414
    .local v0, adRequest:Lcom/google/ads/AdRequest;
    invoke-direct {p0, v0}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->configureAdRequest(Lcom/google/ads/AdRequest;)V

    .line 415
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->mInterstitialAd:Lcom/google/ads/InterstitialAd;

    invoke-virtual {v1, v0}, Lcom/google/ads/InterstitialAd;->loadAd(Lcom/google/ads/AdRequest;)V

    .line 416
    return-void
.end method

.method private handleInterstitialSuccess()V
    .locals 1

    .prologue
    .line 432
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->mConfigurator:Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->isPrefetchInterstitial()Z

    move-result v0

    if-nez v0, :cond_0

    .line 433
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->mInterstitialAd:Lcom/google/ads/InterstitialAd;

    invoke-virtual {v0}, Lcom/google/ads/InterstitialAd;->show()V

    .line 434
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->mInterstitialAd:Lcom/google/ads/InterstitialAd;

    invoke-virtual {v0}, Lcom/google/ads/InterstitialAd;->stopLoading()V

    .line 438
    :goto_0
    return-void

    .line 436
    :cond_0
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->mInterstitialAd:Lcom/google/ads/InterstitialAd;

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->mCachedInterstitialAd:Lcom/google/ads/InterstitialAd;

    goto :goto_0
.end method

.method private static stopAutoRefresh(Ljava/lang/Object;)V
    .locals 7
    .parameter "adView"

    .prologue
    const/4 v6, 0x0

    .line 361
    :try_start_0
    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v3

    const-string v4, "a"

    invoke-virtual {v3, v4}, Ljava/lang/Class;->getDeclaredField(Ljava/lang/String;)Ljava/lang/reflect/Field;

    move-result-object v1

    .line 362
    .local v1, stopField:Ljava/lang/reflect/Field;
    const/4 v3, 0x1

    invoke-virtual {v1, v3}, Ljava/lang/reflect/Field;->setAccessible(Z)V

    .line 363
    invoke-virtual {v1}, Ljava/lang/reflect/Field;->getType()Ljava/lang/Class;

    move-result-object v3

    const-string v4, "a"

    const/4 v5, 0x0

    new-array v5, v5, [Ljava/lang/Class;

    invoke-virtual {v3, v4, v5}, Ljava/lang/Class;->getDeclaredMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;

    move-result-object v2

    .line 364
    .local v2, stopMethod:Ljava/lang/reflect/Method;
    invoke-virtual {v1, p0}, Ljava/lang/reflect/Field;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    const/4 v4, 0x0

    new-array v4, v4, [Ljava/lang/Object;

    invoke-virtual {v2, v3, v4}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 371
    .end local v1           #stopField:Ljava/lang/reflect/Field;
    .end local v2           #stopMethod:Ljava/lang/reflect/Method;
    :goto_0
    return-void

    .line 367
    :catch_0
    move-exception v0

    .line 368
    .local v0, e:Ljava/lang/Exception;
    sget-object v3, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->LOG:Lcom/burstly/lib/util/LoggerExt;

    sget-object v4, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->TAG:Ljava/lang/String;

    const-string v5, "Could not disable autorefresh. Autorefresh will be controlled from Admob server."

    new-array v6, v6, [Ljava/lang/Object;

    invoke-virtual {v3, v4, v5, v6}, Lcom/burstly/lib/util/LoggerExt;->logWarning(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    goto :goto_0
.end method

.method private wrapView(Lcom/google/ads/AdView;)Landroid/widget/FrameLayout;
    .locals 7
    .parameter "view"

    .prologue
    const/4 v6, -0x2

    .line 380
    new-instance v0, Lcom/burstly/lib/component/networkcomponent/ClickAwareWrapper;

    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->getContext()Landroid/content/Context;

    move-result-object v2

    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->getAdaptorListener()Lcom/burstly/lib/component/IBurstlyAdaptorListener;

    move-result-object v3

    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->getViewId()Ljava/lang/String;

    move-result-object v4

    const-string v5, "admob"

    invoke-direct {v0, v2, v3, v4, v5}, Lcom/burstly/lib/component/networkcomponent/ClickAwareWrapper;-><init>(Landroid/content/Context;Lcom/burstly/lib/component/IBurstlyAdaptorListener;Ljava/lang/String;Ljava/lang/String;)V

    .line 381
    .local v0, fl:Landroid/widget/FrameLayout;
    new-instance v1, Landroid/widget/FrameLayout$LayoutParams;

    const/16 v2, 0x11

    invoke-direct {v1, v6, v6, v2}, Landroid/widget/FrameLayout$LayoutParams;-><init>(III)V

    .line 383
    .local v1, params:Landroid/widget/FrameLayout$LayoutParams;
    invoke-virtual {v0, p1, v1}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 384
    return-object v0
.end method


# virtual methods
.method protected checkParameters(Ljava/util/Map;)V
    .locals 1
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "*>;)V"
        }
    .end annotation

    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/IllegalArgumentException;
        }
    .end annotation

    .prologue
    .line 394
    .local p1, paramsFromServer:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;*>;"
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->mConfigurator:Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;

    invoke-virtual {v0, p1}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->initConfigurator(Ljava/util/Map;)V

    .line 395
    return-void
.end method

.method public destroy()V
    .locals 1

    .prologue
    .line 453
    invoke-super {p0}, Lcom/burstly/lib/component/AbstractAdaptor;->destroy()V

    .line 454
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->mAdView:Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor$BurstlyAdViewWrapper;

    if-eqz v0, :cond_0

    .line 455
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->mAdView:Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor$BurstlyAdViewWrapper;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor$BurstlyAdViewWrapper;->destroy()V

    .line 456
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->mAdView:Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor$BurstlyAdViewWrapper;

    .line 458
    :cond_0
    return-void
.end method

.method protected doGetNewAd()Landroid/view/View;
    .locals 2

    .prologue
    .line 304
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->mConfigurator:Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->setPrefetchInterstitial(Z)V

    .line 305
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->mConfigurator:Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->isInterstitial()Z

    move-result v0

    if-nez v0, :cond_0

    .line 306
    invoke-direct {p0}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->executeRequest()Landroid/view/View;

    move-result-object v0

    .line 309
    :goto_0
    return-object v0

    .line 308
    :cond_0
    invoke-direct {p0}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->handleInterstitial()V

    .line 309
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public getAdType()Lcom/burstly/lib/component/IBurstlyAdaptor$BurstlyAdType;
    .locals 1

    .prologue
    .line 404
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->mConfigurator:Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->isInterstitial()Z

    move-result v0

    if-eqz v0, :cond_0

    sget-object v0, Lcom/burstly/lib/component/IBurstlyAdaptor$BurstlyAdType;->INTERSTITIAL_AD_TYPE:Lcom/burstly/lib/component/IBurstlyAdaptor$BurstlyAdType;

    :goto_0
    return-object v0

    :cond_0
    sget-object v0, Lcom/burstly/lib/component/IBurstlyAdaptor$BurstlyAdType;->BANNER_AD_TYPE:Lcom/burstly/lib/component/IBurstlyAdaptor$BurstlyAdType;

    goto :goto_0
.end method

.method public getNetworkName()Ljava/lang/String;
    .locals 1

    .prologue
    .line 389
    const-string v0, "admob"

    return-object v0
.end method

.method public precacheAd()Landroid/view/View;
    .locals 1

    .prologue
    .line 314
    invoke-direct {p0}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->executeRequest()Landroid/view/View;

    move-result-object v0

    return-object v0
.end method

.method public precacheInterstitialAd()V
    .locals 2

    .prologue
    .line 298
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->mConfigurator:Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->setPrefetchInterstitial(Z)V

    .line 299
    invoke-direct {p0}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->handleInterstitial()V

    .line 300
    return-void
.end method

.method public showPrecachedInterstitialAd()V
    .locals 3

    .prologue
    .line 420
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->mCachedInterstitialAd:Lcom/google/ads/InterstitialAd;

    if-eqz v1, :cond_0

    .line 421
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->mCachedInterstitialAd:Lcom/google/ads/InterstitialAd;

    invoke-virtual {v1}, Lcom/google/ads/InterstitialAd;->show()V

    .line 422
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->getAdaptorListener()Lcom/burstly/lib/component/IBurstlyAdaptorListener;

    move-result-object v0

    .line 423
    .local v0, adaptorListener:Lcom/burstly/lib/component/IBurstlyAdaptorListener;
    const-string v1, "admob"

    const/4 v2, 0x1

    invoke-interface {v0, v1, v2}, Lcom/burstly/lib/component/IBurstlyAdaptorListener;->didLoad(Ljava/lang/String;Z)V

    .line 424
    const/4 v1, 0x0

    iput-object v1, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->mCachedInterstitialAd:Lcom/google/ads/InterstitialAd;

    .line 426
    .end local v0           #adaptorListener:Lcom/burstly/lib/component/IBurstlyAdaptorListener;
    :cond_0
    return-void
.end method

.method public stop()V
    .locals 1

    .prologue
    .line 442
    invoke-super {p0}, Lcom/burstly/lib/component/AbstractAdaptor;->stop()V

    .line 443
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->mInterstitialAd:Lcom/google/ads/InterstitialAd;

    if-eqz v0, :cond_0

    .line 444
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->mInterstitialAd:Lcom/google/ads/InterstitialAd;

    invoke-virtual {v0}, Lcom/google/ads/InterstitialAd;->stopLoading()V

    .line 446
    :cond_0
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->mAdView:Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor$BurstlyAdViewWrapper;

    if-eqz v0, :cond_1

    .line 447
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor;->mAdView:Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor$BurstlyAdViewWrapper;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobAdaptor$BurstlyAdViewWrapper;->stopLoading()V

    .line 449
    :cond_1
    return-void
.end method

.method public supports(Ljava/lang/String;)Z
    .locals 1
    .parameter "action"

    .prologue
    .line 399
    const/4 v0, 0x1

    return v0
.end method
